<?php
namespace Admin\Controller;
    use Think\Controller;
class CommonController extends Controller {
    public function _initialize()
    {
        if($_SESSION['user_admin']=='' || $_SESSION['user_admin']==NULL){
            //echo "<script>window.location.href='/Admin/Public/login';</script>";
            $this->redirect('Login/login');
        }
    }

}